function draw_sine
fs=2000;					% sampling frequency
t=0:1/fs:0.1;					% setup time from 0 to 1 second
f=50;							% input frequency
x=sin(2*pi*f*t);			% input signal
subplot(211);plot(t,x);	% plot the signal
title('Continuous-time');
subplot(212);stem(t,x);	% plot the signal using stem
title('Discrete-time');

end